package com.nulldev.util.networking.sctp;

import java.io.PrintStream;

import com.sun.nio.sctp.*;

class AssociationHandler extends AbstractNotificationHandler<PrintStream> {
	public HandlerResult handleNotification(AssociationChangeNotification not, PrintStream stream) {
		stream.println("AssociationChangeNotification received: " + not);
		return HandlerResult.CONTINUE;
	}

	public HandlerResult handleNotification(ShutdownNotification not, PrintStream stream) {
		stream.println("ShutdownNotification received: " + not);
		return HandlerResult.RETURN;
	}
}